<?php
namespace app\common\model;

use think\Model;

class Post extends Model
{
    public function geturlAttr($value)
    {
        if (!\site_config('site_rule')) {
            $value="/index.php".$value;
        }
        return $value;
    }
}
